/*
 * tarm_iic.h
 *
 *  Created on: 2019年12月10日
 *      Author: tinnu
 */

#ifndef MIDDLEWARE_TARM_IIC_H_
#define MIDDLEWARE_TARM_IIC_H_


#include "fsl_i2c.h"


extern bool g_isIICInitFlag;

int I2C4_sendArray(uint8_t i_device7byteAddress, uint8_t i_dateAddr, const void *i_masterTxBuff, size_t i_dateNum);
int I2C4_readArray(uint8_t i_device7byteAddress, uint8_t i_dateAddr, void *o_masterTxBuff, size_t i_dateNum);
int MB_I2C4_sendArray(uint8_t i_dateAddr, const void *i_masterTxBuff, size_t i_dateNum);
int MB_I2C4_readArray(uint8_t i_dateAddr, void *i_masterTxBuff, size_t i_dateNum);

#endif /* MIDDLEWARE_TARM_IIC_H_ */
